/**
 * 
 */ 
package com.laozhao.deliveryManager.zgui; 

import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

import com.laozhao.dreamframe.resources.DreamResource;

/** 
 * @author dozhao 
 * @version create time：Jul 29, 2011 2:41:56 PM 
 * 
 */
/**
 * @author dozhao
 *
 */
public class ZButton extends JButton {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6932106256730272333L;
	
	private static DreamResource resource = new DreamResource("ViewResource");

	/**
	 * 
	 */
	public ZButton() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param icon
	 */
	public ZButton(Icon icon) {
		super(icon);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param text
	 */
	public ZButton(String text) {
		super(resource.getString(text));
//		super(resource.text);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param a
	 */
	public ZButton(Action a) {
		super(a);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param text
	 * @param icon
	 */
	public ZButton(String text, Icon icon) {
		super(resource.getString(text), icon);
		// TODO Auto-generated constructor stub
	}
	
}
 